package javaDesignModel.simpleFactoryPattern;

/**
 * Created by admin on 2017/3/13.
 */
public class Client {
    public static void main(String[] args){
        Product product;
        try {
            product = Factory.getProduct("B");
            product.getColor();
            product = Factory.getProduct("C");
            product.getColor();
        } catch (UnSupportedShapeException e) {
            e.printStackTrace();
        }

    }
}
